package com.doit.excersise.entity;

import java.time.LocalDateTime;
import java.util.Arrays;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author qingfeng
 * @since 2018-11-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbExam implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;
    /**
     * 试题内容
     */
    private String content;

    /**
     * 1:单选2:多选3:判断4:简答5:编程
     */
    private Integer type;

    /**
     * 试题答案
     */
    private String answer;

    /**
     * 试题选项
     */
    private String options;

    /**
     * 试题分数
     */
    private Double score;

    /**
     * 出题教师
     */
    private String teacher;

    /**
     * 试题详解
     */
    private String anylize;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private LocalDateTime createTime;

    /**
     * 课程id
     */
    private Integer coureseId;

    /**
     * 备用字段
     */
    private String remark;
    
    @TableField(exist = false)
    private String[] optionsArr;

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getOptions() {
		return options;
	}

	public void setOptions(String options) {
		this.options = options;
	}

	public Double getScore() {
		return score;
	}

	public void setScore(Double score) {
		this.score = score;
	}

	public String getTeacher() {
		return teacher;
	}

	public void setTeacher(String teacher) {
		this.teacher = teacher;
	}

	public String getAnylize() {
		return anylize;
	}

	public void setAnylize(String anylize) {
		this.anylize = anylize;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public Integer getCoureseId() {
		return coureseId;
	}

	public void setCoureseId(Integer coureseId) {
		this.coureseId = coureseId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String[] getOptionsArr() {
		return optionsArr;
	}

	public void setOptionsArr(String[] optionsArr) {
		this.optionsArr = optionsArr;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "TbExam [content=" + content + ", type=" + type + ", answer=" + answer + ", options=" + options
				+ ", score=" + score + ", teacher=" + teacher + ", anylize=" + anylize + ", createTime=" + createTime
				+ ", coureseId=" + coureseId + ", remark=" + remark + ", optionsArr=" + Arrays.toString(optionsArr)
				+ "]";
	}
    
    

}
